package com.jt.provider.controller;

import com.jt.provider.service.ResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/provider")
public class ProvideSentinelController {
    @GetMapping("/sentinel01")
    public String doSentinel01(){
        return "test sentinel 01";
    }

    @GetMapping("/sentinel02")
    public String doSentinel02(){
        return "test sentinel 01";
    }

    @Autowired
    private ResourceService resourceService;
    @GetMapping("/sentinel03")
    public String doSentinel03(){
        resourceService.doGetResource();
        return "test sentinel 03";
    }

    @GetMapping("/sentinel04")
    public String doSentinel04(){
        resourceService.doGetResource();
        return "test sentinel 04";
    }
}
